<template>
	<view class="container">
		<view class="top" :style="{ backgroundImage: 'url(' + hbbj + ')' }">
			<text @click="qpt" :class="[currentTab == 0 ? 'hb' : '']">工资发放</text>
			<text @click="bkn" :class="[currentTab == 1 ? 'hb' : '']">社保代缴</text>
		</view>
		<view v-if="currentTab == 0" class="u-m-l-20">
			<u-form class="bknhb" :model="model" :rules="rules" ref="uForm" :errorType="errorType">
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="姓名：" prop="qyxz">
					<text>华晨宇</text>
				</u-form-item>
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="性别：" prop="qyxz">
					<text>女</text>
				</u-form-item>
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="身份证号：" prop="qyxz">
					<text>420116202005869811</text>
				</u-form-item>
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="公司职位：" prop="qyxz">
					<text>建筑设计师</text>
				</u-form-item>
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="薪资：" prop="qyxz">
					<text>20000/月</text>
				</u-form-item>



				<u-gap :bg-color="bgColor" :height="height"></u-gap>
				<view class="gzxd cgzs">
					<view class="u-p-t-30 u-p-l-30">
						工资发放
					</view>
					<u-form-item class="u-m-l-30 u-m-r-30" label-width="200" :label-position="labelPosition" label="实付工资" prop="money">
						<u-input :border="border" placeholder="请输入(元)" type="text" input-align="right"></u-input>
					</u-form-item>
					<u-form-item class="u-m-l-30 u-m-r-30" label-width="200" :label-position="labelPosition" label="代扣税额" prop="money">
						<u-input :border="border" placeholder="请输入(元)" type="text" input-align="right"></u-input>
					</u-form-item>
					<u-form-item class="u-m-l-30 u-m-r-30" label-width="200" :label-position="labelPosition" label="考勤奖罚" prop="money">
						<u-input :border="border" placeholder="请输入(元)" type="text" input-align="right"></u-input>
					</u-form-item>
					<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="支付时间" prop="qyxz">
						<u-input type="select" :select-open="selectShowQyxz" v-model="model.qyxz" placeholder="请选择" placeholderStyle="color: #0E1E36;"
						 input-align="right" @click="selectShowQyxz = true"></u-input>
					</u-form-item>

				</view>
				<u-gap :bg-color="bgColor" :height="height"></u-gap>
				<view class="u-m-l-20">共计：18000元</view>

				<u-gap :bg-color="bgColor" :height="height"></u-gap>
			</u-form>
			<u-button class="button">提交</u-button>
		</view>
<view v-if="currentTab == 1" class="u-m-l-20">
			<u-form class="bknhb" :model="model" :rules="rules" ref="uForm" :errorType="errorType">
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="姓名：" prop="qyxz">
					<text>华晨宇</text>
				</u-form-item>
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="性别：" prop="qyxz">
					<text>女</text>
				</u-form-item>
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="身份证号：" prop="qyxz">
					<text>420116202005869811</text>
				</u-form-item>
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="公司职位：" prop="qyxz">
					<text>建筑设计师</text>
				</u-form-item>
				<u-form-item class="u-m-l-30 u-m-r-30" :label-width="200" :label-position="labelPosition" label="薪资：" prop="qyxz">
					<text>20000/月</text>
				</u-form-item>



				<u-gap :bg-color="bgColor" :height="height"></u-gap>
				<view class="gzxd sbdj">
					<view class="u-p-t-30 u-p-l-30">
						社保代缴
					</view>
					<u-form-item class="u-m-l-30 u-m-r-30" label-width="200" :label-position="labelPosition" label="实付工资" prop="money">
						<u-input :border="border" placeholder="请输入(元)" type="text" input-align="right"></u-input>
					</u-form-item>
					<u-form-item class="u-m-l-30 u-m-r-30" label-width="200" :label-position="labelPosition" label="代扣税额" prop="money">
						<u-input :border="border" placeholder="请输入(元)" type="text" input-align="right"></u-input>
					</u-form-item>
					<u-form-item class="u-m-l-30 u-m-r-30" label-width="200" :label-position="labelPosition" label="考勤奖罚" prop="money">
						<u-input :border="border" placeholder="请输入(元)" type="text" input-align="right"></u-input>
					</u-form-item>
				

				</view>
				<u-gap :bg-color="bgColor" :height="height"></u-gap>
				<view class="u-m-l-20">共计：18000元</view>

				<u-gap :bg-color="bgColor" :height="height"></u-gap>
			</u-form>
			<u-button class="button">提交</u-button>
		</view>


	

		<view class="u-m-t-20 u-p-30">
			<!--弹出框-->
			<u-select mode="single-column" :list="selectList" v-model="selectShowQyxz" @confirm="selectConfirmQyxz"></u-select>

			<!--弹出框-->
		</view>

	</view>
</template>

<script>
	export default {

		data() {
			return {
				height: 20,
				bgColor: this.$u.color.bgColor,
				marginTop: 30,
				marginBottom: 30,
				hbbj: "../../static/img/fbdt.png",
				currentTab: 0,
				model: {
					ws: '',
					wxy: '',
					wyx: '',
					qymc: '',
					zyp: '',
					money: "",
				},
				selectList: [{
						value: '测试1',
						label: '测试1'
					},
					{
						value: '测试2',
						label: '测试2'
					},
					{
						value: '测试3',
						label: '测试3'
					}
				],
				checkboxList1: [{
						name: '公开',
						checked: false,
						disabled: false
					},
					{
						name: '隐藏',
						checked: true,
						disabled: false
					},

				],

				checkboxList2: [{
						name: '全网发布',
						checked: false,
						disabled: false
					},
					{
						name: '行业发布',
						checked: false,
						disabled: false
					},
					{
						name: '熟人发布',
						checked: true,
						disabled: false
					},
				],
				rules: {
					zyp: [{
						required: false,
						message: '请选择招/应聘',
						trigger: 'change'
					}],

					ws: [{
						required: false,
						message: '请选择我是',
						trigger: 'change'
					}],
					wxy: [{
						required: false,
						message: '请选择我需要',
						trigger: 'change'
					}],
					wyx: [{
						required: false,
						message: '请选择我意向',
						trigger: 'change'
					}]
				},
				required: false,
				border: false,
				check: false,
				selectStatus: 'close',
				selectShowZyp: false,
				selectShowWs: false,
				selectShowWxy: false,
				selectShowWyx: false,
				selectShowQyxz: false,
				selectShowQylx: false,
				selectShowQydy: false,
				selectShowLyxy: false,
				labelPosition: 'left',
				codeTips: '',
				errorType: ['toast'],
			}
		},
		methods: {
			qpt() {
				this.currentTab = 0;
			},
			bkn() {
				this.currentTab = 1;
			}
		},

	}
</script>

<style scoped lang="scss">
	page {
		background-color: #F4F4F4;

	}

	.gzxd {
		background: white;
		height: 600rpx;
		border-radius: 30rpx;
		// border: 1px solid;
		// padding-bottom: 100px;
	}

	.cgzs {
		height: 600rpx;
	}
	.sbdj{
		height: 450rpx;
	}

	.top {
		background-repeat: no-repeat;
		background-size: 100% 500rpx;
		background-position: 0 -20px;
		display: flex;
		justify-content: space-around;
		padding: 58rpx 30rpx 450rpx 30rpx;

		text {
			display: block;
			width: 226rpx;
			height: 60rpx;
			line-height: 60rpx;
			color: #FFFFFF;
			font-size: 28rpx;
			text-align: center;
		}

		.hb {
			background: #FFFFFF;
			border-radius: 30rpx;
			color: #AB62FF;
		}

	}

	.btnall {
		width: 750rpx;
		height: 100rpx;
		background: #FFFFFF;
		position: fixed;
		// padding-top: 100px;
		bottom: 0;
	}

	.btnaccept {
		width: 270rpx;
		height: 64rpx;
		background: #4C9CFF;
		border-radius: 40upx;
		line-height: 64rpx;
		text-align: center;
		color: #fff;
		font-size: 26rpx;
	}

	.btngoutou {
		width: 270rpx;
		height: 64rpx;
		background-color: #6ADE7E;
		border-radius: 40upx;
		line-height: 64rpx;
		text-align: center;
		color: #fff;

		font-size: 26rpx;

	}

	.zwpj {
		width: 670rpx;
		height: 193rpx;
		background: #F5F5F9;
		border-radius: 20rpx;
		margin: 0 auto;

	}

	.bknhb {
		margin-top: -400rpx;
		width: 710rpx;
		height: 670rpx;
		background-color: #FFFFFF;
		border-radius: 20rpx;
	}

	.button {
		width: 662rpx;
		height: 80rpx;
		font-size: 32rpx;
		margin: 624rpx auto 95rpx auto;
		background: #ab61ff;
		border-radius: 40rpx;
		border: 0;
		color: #fff;

		&.u-hairline-border:after {
			border: 0;
		}
	}

	// .jq{
	// 	color: #0D1D36;
	// 	font-size: 50rpx;
	// 	font-weight: bold;
	// 	margin-left: 256rpx;
	// 	margin-top: 160rpx;
	// }
	.qpthb {
		margin-top: -400rpx;
		width: 710rpx;
		height: 770rpx;
		background-color: #FFFFFF;
		border-radius: 20rpx;
	}
</style>
